package manage_model

// 后台登录日志表
type ManageLoginLog struct {
	ID                uint   `json:"id" gorm:"not null;autoIncrement;primaryKey;comment:日志id"`
	UserID            uint   `json:"user_id" gorm:"not null;comment:用户id"`
	Username          string `json:"username" gorm:"comment:用户名"`
	Nickname          string `json:"nickname" gorm:"comment:昵称"`
	BelongingRole     string `json:"belonging_role" gorm:"comment:所属角色"`
	IP                string `json:"ip" gorm:"comment:地区/IP"`
	DeviceInformation string `json:"device_information" gorm:"comment:设备信息"`
	CreateTime        uint64 `json:"create_time" gorm:"autoCreateTime;comment:登录时间"`
}

func (ManageLoginLog) TableName() string {
	return "gv_manage_user_login_log"
}
